package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.BannerImgDao;
import io.wdb.modules.generator.generator.entity.BannerImgEntity;
import io.wdb.modules.generator.generator.service.BannerImgService;



@Service("bannerImgService")
public class BannerImgServiceImpl implements BannerImgService {
	@Autowired
	private BannerImgDao bannerImgDao;
	
	@Override
	public BannerImgEntity queryObject(Long id){
		return bannerImgDao.queryObject(id);
	}
	
	@Override
	public List<BannerImgEntity> queryList(Map<String, Object> map){
		return bannerImgDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bannerImgDao.queryTotal(map);
	}
	
	@Override
	public void save(BannerImgEntity bannerImg){
		bannerImgDao.save(bannerImg);
	}
	
	@Override
	public void update(BannerImgEntity bannerImg){
		bannerImgDao.update(bannerImg);
	}
	
	@Override
	public void delete(Long id){
		bannerImgDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		bannerImgDao.deleteBatch(ids);
	}
	
}
